package com.wujunshen.dumpling.database.mysql.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.wujunshen.dumpling.database.metadata.ITable;
import com.wujunshen.dumpling.database.mysql.mapping.MappingField;
import lombok.Data;

/**
 * 表信息
 *
 * @author frankwoo
 */
@Data
public class MySqlTable implements ITable {
  @JsonProperty(value = "数据库名")
  @MappingField(value = "TABLE_CAT")
  private String tableCatalog;

  /** 表名 */
  @JsonProperty(value = "表名")
  @MappingField(value = "TABLE_NAME")
  private String tableName;

  /** 表类型 */
  @JsonProperty(value = "表类型")
  @MappingField(value = "TABLE_TYPE")
  private String tableType;

  /** 备注 */
  @JsonProperty(value = "备注")
  @MappingField(value = "REMARKS")
  private String remarks;
}
